package com.dries.portal.module.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 群组
 * 
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-08-30 17:09:25
 */
@Data
@TableName("xx_group_chat")
public class GroupChat implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.INPUT)
	private Integer id;
	/**
	 * 群编码
	 */
	private String groupCode;
	/**
	 * 群名称
	 */
	private String groupName;
	private String groupType;
	/**
	 * 群备注
	 */
	private String groupPurpose;
	/**
	 * 创建人
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long groupUserId;
	/**
	 * 群头像
	 */
	private String groupImg;
	private String groupUserName;
	private String groupUserAvatar;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
